<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"  
                xmlns:h="http://java.sun.com/jsf/html"  
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../templates/StakeholderPortalTemplate.xhtml">
    <link href="./../resources/css/default.css" rel="stylesheet" type="text/css" />
    <link href="./../resources/css/tableLayout.css" rel="stylesheet" type="text/css" />
    <ui:define name="left">
        <table>
            <tr>
                <td><a id="addBranchLink" href="AddBranch.xhtml"><font color="#43C6DB">#{bundle['index.addbranch.link']}</font></a></td>
            </tr>
            <tr>
                <td><a id="viewBranchLink" href="ViewAllBranch.xhtml"><font color="#43C6DB">#{bundle['index.viewallbranch.link']}</font></a></td>
            </tr>
        </table>
    </ui:define>
    <ui:define name="content">  
        <f:view beforePhase="#{editBranchManagedBean.initView}">
            <h:body>
                <h:form id="branchEditBranchDetailsForm" prependId="false">
                    <p:panel id="branchEditBranchDetailsPanel" header="#{bundle['branch.editbranchdetails.panel']}">
                        <p:messages id="statusMessages" />
                        <p:tabView id="branchEditBranchTabView" dynamic="false">

                            <p:tab id="branchContactInformationTab" title="#{bundle['branch.contactinfo.tab']}">

                                <h:panelGrid columns="1" cellpadding="10">
                                    <h:outputLabel id="branchContactInfoNote" style="font-weight: bold; font-size: medium; color: red" value="#{bundle['branch.contactinfo.note']}" />
                                </h:panelGrid>  

                                <table>
                                    <tr height="50px">
                                        <td width="200px">
                                            <h:outputLabel id="branchNameLabel" style="font-weight: bold" value="#{bundle['branch.name.label']}:" />   
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:inputText id="branchNameTextBox" required="true" label="Branch Name" requiredMessage="#{bundle['branch.name.required']}" value="#{editBranchManagedBean.fnbBranchToEdit.branchName}" size="25"/>
                                        </td>    
                                        <td>
                                            <p:message for="branchNameTextBox" />
                                        </td>
                                    </tr>
                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchStreetNameLabel" style="font-weight: bold" value="#{bundle['branch.streetname.label']}:" />
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:inputText id="streetNameTextBox" required="true" requiredMessage="#{bundle['branch.streetname.required']}" label="Street Name" value="#{editBranchManagedBean.fnbBranchToEdit.branchAddress.streetName}" size="25"/>       
                                        </td>
                                        <td>
                                            <p:message for="streetNameTextBox" />
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchUnitNumberLabel" style="font-weight: bold" value="#{bundle['branch.unitnumber.label']}:" />
                                        </td>
                                        <td>
                                            <h:inputText id="branchUnitNumberTextBox" size="10" value="#{editBranchManagedBean.fnbBranchToEdit.branchAddress.unitNumber}" />
                                            <h:outputLabel style="font-size: small" value="(e:g: #02-45, #02-45/46/47)" />
                                        </td>
                                        <td>
                                            <p:message for="branchUnitNumberTextBox" />
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchBlockNumberLabel" style="font-weight: bold" value="#{bundle['branch.blocknumber.label']}:" />
                                        </td>     
                                        <td>
                                            <h:inputText id="branchBlockNumberTextBox" value="#{editBranchManagedBean.fnbBranchToEdit.branchAddress.houseNumber}" size="10"/>                       
                                        </td>
                                        <td>
                                            <p:message for="branchBlockNumberTextBox" />         
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchBuildingNameLabel" style="font-weight: bold" value="#{bundle['branch.buildingname.label']}:" />
                                        </td>
                                        <td>                            
                                            <h:inputText id="branchBuildingNameTextBox" value="#{editBranchManagedBean.fnbBranchToEdit.branchAddress.buildingName}"/>       
                                        </td>
                                        <td>
                                            <p:message for="branchBuildingNameTextBox" />
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchPostalCodeLabel" style="font-weight: bold" value="#{bundle['branch.postalcode.label']}:" />
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <p:inputMask id="branchPostalCodeTextBox" required="true" requiredMessage="#{bundle['branch.postalcode.required']}" value="#{editBranchManagedBean.fnbBranchToEdit.branchAddress.postalCode}" mask="999999" size="6"/>  
                                        </td>
                                        <td>
                                            <p:message for="branchPostalCodeTextBox" />
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchContactNumberLabel" style="font-weight: bold" value="#{bundle['branch.contactnumber.label']}:" />  
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <p:inputMask id="branchContactNumberTextBox" required="true" requiredMessage="#{bundle['branch.contactnumber.required']}" value="#{editBranchManagedBean.fnbBranchToEdit.contactNumber}" mask="(999)-99999999"/>  
                                        </td>
                                        <td>
                                            <p:message for="branchContactNumberTextBox" />
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchContactPersonLabel" style="font-weight: bold" value="#{bundle['branch.contactperson.label']}:" />
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:inputText id="branchContactPersonTextBox" required="true" requiredMessage="#{bundle['branch.contactperson.required']}" value="#{editBranchManagedBean.fnbBranchToEdit.contactPerson}"/>
                                        </td>
                                        <td>
                                            <p:message for="branchContactPersonTextBox" />
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchEmailAddressLabel" style="font-weight: bold" value="#{bundle['branch.emailaddress.label']}:" />
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:inputText id="branchEmailAddressTextBox" required="true" requiredMessage="#{bundle['branch.emailaddress.required']}" size="25" value="#{editBranchManagedBean.fnbBranchToEdit.emailAddress}" validator="#{editBranchManagedBean.validateEmail}"/>
                                            <h:outputLabel style="font-size: small" value="(e:g kenneth@hotmail.com)" />
                                        </td>
                                        <td>
                                            <p:message for="branchEmailAddressTextBox" />
                                        </td>
                                    </tr>
                                </table>
                            </p:tab>

                            <p:tab id="branchNatureOfBusinessTab" title="#{bundle['branch.natureofbusiness.tab']}">
                                <table>
                                    <tr height="50px" align="center">
                                        <td>
                                            <h:outputLabel id="branchCuisineTypesLabel" style="font-weight: bold" value="#{bundle['branch.cuisinetypes.label']}:" />
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:selectManyCheckbox id="branchCuisineTypesSelectManyCheckbox" layout="pageDirection" required="true" requiredMessage="#{bundle['branch.cuisinetypes.required']}" value="#{editBranchManagedBean.cuisineTypeList}" converter="cuisineTypeConverter">
                                                <f:selectItems id="branchCuisineTypesSelectItems" value="#{enumCuisineType.listItems}" />
                                            </h:selectManyCheckbox>
                                        </td>
                                        <td>
                                            <p:message for="branchCuisineTypesSelectManyCheckbox"/>
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchFnbTypeLabel" style="font-weight: bold" value="#{bundle['branch.fnbtype.label']}:"/>       
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:selectOneMenu id="branchFnbTypeSelectOneMenu" required="true" requiredMessage="#{bundle['branch.fnbtype.required']}" value="#{editBranchManagedBean.fnbBranchToEdit.fnBTypeEnum}" converter="fnbTypeConverter">
                                                <f:selectItems id="branchFnbTypeSelectItems" value="#{enumFnbType.listItems}" />
                                            </h:selectOneMenu>
                                        </td>
                                        <td>
                                            <p:message for="branchFnbTypeSelectOneMenu"/>
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchHalalTypeLabel" style="font-weight: bold" value="#{bundle['branch.halaltype.label']}:" />   
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:selectOneRadio id="branchHalalTypeSelectOneRadio" required="true" requiredMessage="#{bundle['branch.halaltype.required']}" value="#{editBranchManagedBean.fnbBranchToEdit.isHalalEnum}" converter="halalTypeConverter" >
                                                <f:selectItems id="branchHalalTypeSelectItems" value="#{enumHalalType.listItems}"/>
                                            </h:selectOneRadio>
                                        </td>
                                        <td>
                                            <p:message for="branchHalalTypeSelectOneRadio"/>
                                        </td>
                                    </tr>

                                    <tr height="50px">
                                        <td>
                                            <h:outputLabel id="branchPriceRangeLabel" style="font-weight: bold" value="#{bundle['branch.pricerange.label']}:" />
                                            <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                        </td>
                                        <td>
                                            <h:selectOneMenu id="branchPriceRangeSelectOneMenu" requiredMessage="#{bundle['branch.pricerange.required']}" required="true" value="#{editBranchManagedBean.fnbBranchToEdit.priceRangeEnum}" converter="priceRangeConverter">
                                                <f:selectItems id="branchPriceRangeSelectItems" value="#{enumPriceRange.listItems}"/>
                                            </h:selectOneMenu>
                                        </td>
                                        <td>
                                            <p:message for="branchPriceRangeSelectOneMenu" />
                                        </td>
                                    </tr>
                                </table>
                            </p:tab>


                            <p:tab id="branchOperatingHoursTab" title="#{bundle['branch.operatinghours.tab']}">
                                <h:panelGrid columns="1" cellpadding="10">
                                    <h:outputLabel id="branchOperatingHoursNotes" style="font-weight: bold; font-size: medium; color: red" value="#{bundle['branch.operatinghours.note']}" />
                                </h:panelGrid>

                                <h:panelGrid columns="6" cellpadding="10">
                                    <h:outputLabel id="branchMondayStartLabel" style="font-weight: bold" value="#{bundle['branch.mondaystart.label']}:"/>
                                    <h:selectOneMenu required="true" id="branchMondayStartSelectOneMenu" binding="#{mondayStart}" value="#{editBranchManagedBean.mondayStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchMondayStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>
                                    <p:message for="branchMondayStartSelectOneMenu" />

                                    <h:outputLabel id="branchMondayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu required="true" id="branchMondayEndSelectOneMenu" value="#{editBranchManagedBean.mondayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                        <f:selectItems id="branchMondayEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                        <f:attribute name="day" value="#{mondayStart}" />
                                    </h:selectOneMenu>
                                    <p:message for="branchMondayEndSelectOneMenu" />

                                    <h:outputLabel id="branchTuesdayStartLabel" style="font-weight: bold" value="#{bundle['branch.tuesdaystart.label']}:"/>
                                    <h:selectOneMenu required="true" id="branchTuesdayStartSelectOneMenu" binding="#{tuesdayStart}" value="#{editBranchManagedBean.tuesdayStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchTuesdayStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>
                                    <p:message for="branchTuesdayStartSelectOneMenu" />   

                                    <h:outputLabel id="branchTuesdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu required="true" id="branchTuesdayEndSelectOneMenu" value="#{editBranchManagedBean.tuesdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                        <f:selectItems id="branchTuesdayEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                        <f:attribute name="day" value="#{tuesdayStart}" />
                                    </h:selectOneMenu>
                                    <p:message for="branchTuesdayEndSelectOneMenu" />

                                    <h:outputLabel id="branchWednesdayStartLabel" style="font-weight: bold" value="#{bundle['branch.wednesdaystart.label']}:"/>
                                    <h:selectOneMenu required="true" id="branchWednesdayStartSelectOneMenu" binding="#{wednesdayStart}" value="#{editBranchManagedBean.wednesdayStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchWednesdayStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>
                                    <p:message for="branchWednesdayStartSelectOneMenu" /> 

                                    <h:outputLabel id="branchWednesdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu required="true" id="branchWednesdayEndSelectOneMenu" value="#{editBranchManagedBean.wednesdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                        <f:selectItems id="branchWednesdayEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                        <f:attribute name="day" value="#{wednesdayStart}" />
                                    </h:selectOneMenu>
                                    <p:message for="branchWednesdayEndSelectOneMenu" /> 

                                    <h:outputLabel id="branchThursdayStartLabel" style="font-weight: bold" value="#{bundle['branch.thursdaystart.label']}:"/>
                                    <h:selectOneMenu required="true" id="branchThursdayStartSelectOneMenu" binding="#{thursdayStart}" value="#{editBranchManagedBean.thursdayStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchThursdayStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>
                                    <p:message for="branchThursdayStartSelectOneMenu" /> 

                                    <h:outputLabel id="branchThursdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu required="true" id="branchThursdayEndSelectOneMenu" value="#{editBranchManagedBean.thursdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                        <f:selectItems id="branchThursdayEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                        <f:attribute name="day" value="#{thursdayStart}" />
                                    </h:selectOneMenu>
                                    <p:message for="branchThursdayEndSelectOneMenu" /> 

                                    <h:outputLabel id="branchFridayStartLabel" style="font-weight: bold" value="#{bundle['branch.fridaystart.label']}:"/>
                                    <h:selectOneMenu required="true" id="branchFridayStartSelectOneMenu" binding="#{fridayStart}" value="#{editBranchManagedBean.fridayStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchFridayStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>
                                    <p:message for="branchFridayStartSelectOneMenu" /> 

                                    <h:outputLabel id="branchFridayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu required="true" id="branchFridayEndSelectOneMenu" value="#{editBranchManagedBean.fridayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                        <f:selectItems id="branchFridayEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                        <f:attribute name="day" value="#{fridayStart}" />
                                    </h:selectOneMenu>
                                    <p:message for="branchFridayEndSelectOneMenu" /> 

                                    <h:outputLabel id="branchSaturdayStartLabel" style="font-weight: bold" value="#{bundle['branch.saturdaystart.label']}:"/>
                                    <h:selectOneMenu required="true" id="branchSaturdayStartSelectOneMenu" binding="#{saturdayStart}" value="#{editBranchManagedBean.saturdayStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchSaturdayStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>
                                    <p:message for="branchSaturdayStartSelectOneMenu" /> 

                                    <h:outputLabel id="branchSaturdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu required="true" id="branchSaturdayEndSelectOneMenu" value="#{editBranchManagedBean.saturdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                        <f:selectItems id="branchSaturdayEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                        <f:attribute name="day" value="#{saturdayStart}" />
                                    </h:selectOneMenu>
                                    <p:message for="branchSaturdayEndSelectOneMenu" /> 

                                    <h:outputLabel id="branchSundayStartLabel" style="font-weight: bold" value="#{bundle['branch.sundaystart.label']}:"/>
                                    <h:selectOneMenu required="true" id="branchSundayStartSelectOneMenu" binding="#{sundayStart}" value="#{editBranchManagedBean.sundayStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchSundayStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>
                                    <p:message for="branchSundayStartSelectOneMenu" /> 

                                    <h:outputLabel id="branchSundayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu required="true" id="branchSundayEndSelectOneMenu" value="#{editBranchManagedBean.sundayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                        <f:selectItems id="branchSundayEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                        <f:attribute name="day" value="#{sundayStart}" />
                                    </h:selectOneMenu>
                                    <p:message for="branchSundayEndSelectOneMenu" /> 
                                </h:panelGrid>

                                <h:panelGrid columns="2" cellpadding="10">
                                    <h:outputLabel id="branchOperatingHoursRemarksLabel" style="font-weight: bold" value="#{bundle['branch.operatinghoursremarks.label']}:"/>
                                    <p:inputTextarea id="branchOperatingHoursInputTextArea" style="width:300px;height:100px;" effectDuration="400" value="#{editBranchManagedBean.operatingHoursRemarksToEdit.remarks}"/>  
                                </h:panelGrid>
                            </p:tab>


                            <p:tab id="branchExtendedOperatingHoursTab" title="#{bundle['branch.extendedoperatinghours.tab']}">

                                <h:panelGrid columns="1" cellpadding="10">
                                    <h:outputLabel id="branchExtendedOperatingHoursNotes" style="font-weight: bold; font-size: medium; color: red" value="#{bundle['branch.extendedoperatinghours.note']}" />
                                </h:panelGrid>

                                <h:panelGrid columns="8" cellpadding="10">
                                    <h:outputLabel id="branchExtendedDateLabel" style="font-weight: bold" value ="#{bundle['branch.extendeddate.label']}: "/>
                                    <p:calendar id="branchExtendedCalendarDate" value="#{editBranchManagedBean.extendedCalendarDate}" pattern="yyyy-MM-dd" />

                                    <h:outputLabel id="branchExtendedTimeStartLabel" style="font-weight: bold" value="#{bundle['branch.extendedstarttime.label']}: "/>
                                    <h:selectOneMenu binding="#{extendedTimeStart}" id="branchExtendedTimeStartSelectOneMenu" value="#{editBranchManagedBean.extendedTimeStart}" converter="operatingHoursConverter">
                                        <f:selectItems id="branchExtendedTimeStartSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>

                                    <h:outputLabel id="branchExtendedTimeEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                    <h:selectOneMenu id="branchExtendedTimeEndSelectOneMenu" value="#{editBranchManagedBean.extendedTimeEnd}" converter="operatingHoursConverter" >
                                        <f:selectItems id="branchExtendedTimeEndSelectItems" value="#{enumOperatingHours.listItems}"/>
                                    </h:selectOneMenu>

                                    <p:commandButton id="branchAddSpecificDateButton" value="#{bundle['branch.addspecificdate.button']}" process="@this branchExtendedCalendarDate, branchExtendedTimeStartSelectOneMenu, branchExtendedTimeEndSelectOneMenu" update="statusMessages branchExtendedDateDataTable" ajax="true" actionListener="#{editBranchManagedBean.addSpecificDateList}" title="Add Specific Date"/>
                                    <p:message for="branchAddSpecificDateButton"/> 
                                </h:panelGrid>

                                <h:panelGrid columns="1" cellpadding="10" id="branchExtendedDatePanelGrid">
                                    <p:dataTable var="branchExtendedDate" value="#{editBranchManagedBean.extendedOperatingHoursList}" id="branchExtendedDateDataTable" style="width:350px">  

                                        <p:column headerText="#{bundle['branch.extendeddate.label']}">
                                            <h:outputText value="#{branchExtendedDate.specificDate}" >
                                                <f:convertDateTime type="date" pattern="dd-MM-yyyy" timeZone="GMT+8:00" />
                                            </h:outputText>
                                        </p:column>

                                        <p:column headerText="#{bundle['branch.extendedoperatingday.label']}">
                                            <h:outputText value="#{branchExtendedDate.operatingDayEnum}" converter="operatingDayConverter"/>  
                                        </p:column>

                                        <p:column headerText="#{bundle['branch.extendedstarttime.label']}">
                                            <h:outputText value="#{branchExtendedDate.openingHoursEnum}" converter="operatingHoursConverter" />  
                                        </p:column>

                                        <p:column headerText="#{bundle['branch.extendedendtime.label']}" >
                                            <h:outputText value="#{branchExtendedDate.closingHoursEnum}" converter="operatingHoursConverter" >

                                            </h:outputText>
                                        </p:column>

                                        <p:column> 
                                            <p:commandButton style="width:100px" value="#{bundle['branch.removespecificDate.button']}" id="removeSpecificDateButton" update="statusMessages branchExtendedDatePanelGrid" ajax="true" immediate="true" actionListener="#{editBranchManagedBean.removeSpecificDateList(branchExtendedDate)}"/>
                                            <p:message for="removeSpecificDateButton"/> 
                                        </p:column>  
                                    </p:dataTable>
                                </h:panelGrid>

                            </p:tab>

                        </p:tabView>

                        <p:ajaxStatus style="width:16px;height:16px;">
                            <f:facet name="start">
                                <h:graphicImage value="/images/ajaxloading.gif" />
                            </f:facet>
                            <f:facet name="complete">
                                <h:outputText value="" />
                            </f:facet>
                        </p:ajaxStatus>

                        <p:commandButton id="branchEditBranchButton" value="#{bundle['branch.edit.button']}" update="statusMessages branchEditBranchTabView" ajax="true" actionListener="#{editBranchManagedBean.editBranch}" />
                    </p:panel>                               
                </h:form>
            </h:body>
        </f:view>
    </ui:define>
</ui:composition>
